package astnode;
import java.util.ArrayList;
public class BranchStmtNode extends ASTNode implements StmtNode{
	
	public BranchStmtNode(int lineNum) {
		super(lineNum);
	}

	private int end;
	private ExpressionNode exp = null;
	private ArrayList<CaseNode> cases = new ArrayList<CaseNode>();
	public ExpressionNode getExp() {
		return exp;
	}
	public void setExp(ExpressionNode exp) {
		this.exp = exp;
	}
	
	public void setend(int temp){
		 end = temp;
	}
	
	public int getend(){
		return end;
	}
	
	public void addCaseNode( CaseNode caseNode ){
		cases.add( caseNode );
	}
	
	public ArrayList<CaseNode> getCases(){
		return cases;
	}
	
	
}
